home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 123
/
(Vol 123) Jan 13 2011.iso
/
Games
/
bread-cooking.swf
/
scripts
/
frame_84
/
PlaceObject2_31_4
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Wrap
Text File
|
2011-01-13
|
522b
|
28 lines
onClipEvent(enterFrame){
if(_root.isGameOver)
{
return undefined;
}
nt = getTimer() - startTime;
tm = 1000 * _root.TIME_MAX - nt;
if(tm < 0)
{
tm = 0;
}
if(prevTime != tm)
{
prevTime = tm;
k3 = String(parseInt(tm / 60000) % 60);
k2 = String(parseInt(tm / 1000) % 60);
if(k2.length == 1)
{
k2 = "0" + k2;
}
f_Time = k3 + ":" + k2;
if(tm == 0)
{
_root.gameOver(true);
}
}
}